<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver ADS1118: ads1118 basic driver function</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver ADS1118
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">ADS1118 full-featured driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__ads1118__basic__driver.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ads1118 basic driver function<div class="ingroups"><a class="el" href="group__ads1118__driver.html">ads1118 driver function</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>ads1118 basic driver modules  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structads1118__handle__s.html">ads1118_handle_s</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 handle structure definition  <a href="structads1118__handle__s.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structads1118__info__s.html">ads1118_info_s</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 information structure definition  <a href="structads1118__info__s.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gaadad14ae0203b8cacb132a81dadefd9f"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structads1118__handle__s.html">ads1118_handle_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a></td></tr>
<tr class="memdesc:gaadad14ae0203b8cacb132a81dadefd9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 handle structure definition  <a href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">More...</a><br /></td></tr>
<tr class="separator:gaadad14ae0203b8cacb132a81dadefd9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8ceed1d957d0458c8fbeb069da9c0d6b"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structads1118__info__s.html">ads1118_info_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga8ceed1d957d0458c8fbeb069da9c0d6b">ads1118_info_t</a></td></tr>
<tr class="memdesc:ga8ceed1d957d0458c8fbeb069da9c0d6b"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 information structure definition  <a href="group__ads1118__basic__driver.html#ga8ceed1d957d0458c8fbeb069da9c0d6b">More...</a><br /></td></tr>
<tr class="separator:ga8ceed1d957d0458c8fbeb069da9c0d6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga78f49a4380e81222e020fb730acc47f1"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga78f49a4380e81222e020fb730acc47f1">ads1118_bool_t</a> { <a class="el" href="group__ads1118__basic__driver.html#gga78f49a4380e81222e020fb730acc47f1a20394de6d87f9867988d8d9d745596e1">ADS1118_BOOL_FALSE</a> = 0x00
, <a class="el" href="group__ads1118__basic__driver.html#gga78f49a4380e81222e020fb730acc47f1a0632581684dbafc03a6d4d55ae4fcb6e">ADS1118_BOOL_TRUE</a> = 0x01
 }</td></tr>
<tr class="memdesc:ga78f49a4380e81222e020fb730acc47f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 bool enumeration definition  <a href="group__ads1118__basic__driver.html#ga78f49a4380e81222e020fb730acc47f1">More...</a><br /></td></tr>
<tr class="separator:ga78f49a4380e81222e020fb730acc47f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8e9e27e0d446a669c5766bef8dc9e3db"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga8e9e27e0d446a669c5766bef8dc9e3db">ads1118_range_t</a> { <br />
&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dbad54eb5fd2837dffd5ead493710d45063">ADS1118_RANGE_6P144V</a> = 0x00
, <a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dbad70180f192713d521c787e63030bd6e9">ADS1118_RANGE_4P096V</a> = 0x01
, <a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dbabd8448722b8bc8fa8a451723b1258144">ADS1118_RANGE_2P048V</a> = 0x02
, <a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dba8a92d51c2cef6b3f95c4a71647d265ad">ADS1118_RANGE_1P024V</a> = 0x03
, <br />
&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dbaad424621cf470a9a11fab9cb5b0d6de5">ADS1118_RANGE_0P512V</a> = 0x04
, <a class="el" href="group__ads1118__basic__driver.html#gga8e9e27e0d446a669c5766bef8dc9e3dba5513613a4baca4b8d42f4939b619aa9c">ADS1118_RANGE_0P256V</a> = 0x05
<br />
 }</td></tr>
<tr class="memdesc:ga8e9e27e0d446a669c5766bef8dc9e3db"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 range enumeration definition  <a href="group__ads1118__basic__driver.html#ga8e9e27e0d446a669c5766bef8dc9e3db">More...</a><br /></td></tr>
<tr class="separator:ga8e9e27e0d446a669c5766bef8dc9e3db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad5dec9726414e0cf7c7b65894ce838f8"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gad5dec9726414e0cf7c7b65894ce838f8">ads1118_rate_t</a> { <br />
&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8ae56de8a9e54b295965f3e6d6a37b2f3a">ADS1118_RATE_8SPS</a> = 0x00
, <a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8a6668699dc8cc04acf7d1e07baa8d9edd">ADS1118_RATE_16SPS</a> = 0x01
, <a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8a6934052e5bd66fee04ed51656644e3ec">ADS1118_RATE_32SPS</a> = 0x02
, <a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8a01e81a3c6c5afcafbc7e727801f23617">ADS1118_RATE_64SPS</a> = 0x03
, <br />
&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8aba07a6359dee87c7c7686b2f670216c1">ADS1118_RATE_128SPS</a> = 0x04
, <a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8afc684d1815f829b624e3dcdd008d2324">ADS1118_RATE_250SPS</a> = 0x05
, <a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8ab3406d4c5ad1eba23e6374b9e27394d4">ADS1118_RATE_475SPS</a> = 0x06
, <a class="el" href="group__ads1118__basic__driver.html#ggad5dec9726414e0cf7c7b65894ce838f8a9b336c77a1f74d36ca4469e26e8ead55">ADS1118_RATE_860SPS</a> = 0x07
<br />
 }</td></tr>
<tr class="memdesc:gad5dec9726414e0cf7c7b65894ce838f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 channel rate enumeration definition  <a href="group__ads1118__basic__driver.html#gad5dec9726414e0cf7c7b65894ce838f8">More...</a><br /></td></tr>
<tr class="separator:gad5dec9726414e0cf7c7b65894ce838f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabafaa3825a93ff6b91ee46b52fd87985"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a> { <br />
&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985a58125163d98403f090c67e081975ff8c">ADS1118_CHANNEL_AIN0_AIN1</a> = 0x00
, <a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985a6ad610ba2237169d8f815190fc7fd635">ADS1118_CHANNEL_AIN0_AIN3</a> = 0x01
, <a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985adfc3e9c067fccfb9568c4f36d56d29a2">ADS1118_CHANNEL_AIN1_AIN3</a> = 0x02
, <a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985a7d3758007a36985cd1a35c2e983923a8">ADS1118_CHANNEL_AIN2_AIN3</a> = 0x03
, <br />
&#160;&#160;<a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985a4c23449b464ca7e036c087cd6b54eb5e">ADS1118_CHANNEL_AIN0_GND</a> = 0x04
, <a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985ac0aa314ff603ec793b90ff60cc0d3440">ADS1118_CHANNEL_AIN1_GND</a> = 0x05
, <a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985a31a3e2abc07afc5a3ade5e6ce71f0187">ADS1118_CHANNEL_AIN2_GND</a> = 0x06
, <a class="el" href="group__ads1118__basic__driver.html#ggabafaa3825a93ff6b91ee46b52fd87985ac55cc1d3e9c42d3a51513cb4ea5206fc">ADS1118_CHANNEL_AIN3_GND</a> = 0x07
<br />
 }</td></tr>
<tr class="memdesc:gabafaa3825a93ff6b91ee46b52fd87985"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 channel enumeration definition  <a href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">More...</a><br /></td></tr>
<tr class="separator:gabafaa3825a93ff6b91ee46b52fd87985"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6c9f083f2c394319c5a0ccfcad8f006d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a> { <a class="el" href="group__ads1118__basic__driver.html#gga6c9f083f2c394319c5a0ccfcad8f006daa427a34d39145d5d0d2a54bd1c76f950">ADS1118_MODE_ADC</a> = 0x00
, <a class="el" href="group__ads1118__basic__driver.html#gga6c9f083f2c394319c5a0ccfcad8f006da886ef96e7601af3ec517ec8234ffbac2">ADS1118_MODE_TEMPERATURE</a> = 0x01
 }</td></tr>
<tr class="memdesc:ga6c9f083f2c394319c5a0ccfcad8f006d"><td class="mdescLeft">&#160;</td><td class="mdescRight">ads1118 mode enumeration definition  <a href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">More...</a><br /></td></tr>
<tr class="separator:ga6c9f083f2c394319c5a0ccfcad8f006d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga55d6166a84901612e5928e627dce4f90"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga55d6166a84901612e5928e627dce4f90">ads1118_info</a> (<a class="el" href="group__ads1118__basic__driver.html#ga8ceed1d957d0458c8fbeb069da9c0d6b">ads1118_info_t</a> *info)</td></tr>
<tr class="memdesc:ga55d6166a84901612e5928e627dce4f90"><td class="mdescLeft">&#160;</td><td class="mdescRight">get chip's information  <a href="group__ads1118__basic__driver.html#ga55d6166a84901612e5928e627dce4f90">More...</a><br /></td></tr>
<tr class="separator:ga55d6166a84901612e5928e627dce4f90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9014301f3bc54491fa06584985344a1d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga9014301f3bc54491fa06584985344a1d">ads1118_init</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga9014301f3bc54491fa06584985344a1d"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize the chip  <a href="group__ads1118__basic__driver.html#ga9014301f3bc54491fa06584985344a1d">More...</a><br /></td></tr>
<tr class="separator:ga9014301f3bc54491fa06584985344a1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9b8aa851ba99b283ac4602782b223ee3"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga9b8aa851ba99b283ac4602782b223ee3">ads1118_deinit</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga9b8aa851ba99b283ac4602782b223ee3"><td class="mdescLeft">&#160;</td><td class="mdescRight">close the chip  <a href="group__ads1118__basic__driver.html#ga9b8aa851ba99b283ac4602782b223ee3">More...</a><br /></td></tr>
<tr class="separator:ga9b8aa851ba99b283ac4602782b223ee3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2188b115128959d6296d1aa337293532"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga2188b115128959d6296d1aa337293532">ads1118_single_read</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, int16_t *raw, float *v)</td></tr>
<tr class="memdesc:ga2188b115128959d6296d1aa337293532"><td class="mdescLeft">&#160;</td><td class="mdescRight">read data from the chip once  <a href="group__ads1118__basic__driver.html#ga2188b115128959d6296d1aa337293532">More...</a><br /></td></tr>
<tr class="separator:ga2188b115128959d6296d1aa337293532"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga73e33b761a30ee2d8a32e2683f501b21"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga73e33b761a30ee2d8a32e2683f501b21">ads1118_continuous_read</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, int16_t *raw, float *v)</td></tr>
<tr class="memdesc:ga73e33b761a30ee2d8a32e2683f501b21"><td class="mdescLeft">&#160;</td><td class="mdescRight">read data from the chip continuously  <a href="group__ads1118__basic__driver.html#ga73e33b761a30ee2d8a32e2683f501b21">More...</a><br /></td></tr>
<tr class="separator:ga73e33b761a30ee2d8a32e2683f501b21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad91adcee86fd324ce059c910fbbfc703"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gad91adcee86fd324ce059c910fbbfc703">ads1118_start_continuous_read</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle)</td></tr>
<tr class="memdesc:gad91adcee86fd324ce059c910fbbfc703"><td class="mdescLeft">&#160;</td><td class="mdescRight">start the chip reading  <a href="group__ads1118__basic__driver.html#gad91adcee86fd324ce059c910fbbfc703">More...</a><br /></td></tr>
<tr class="separator:gad91adcee86fd324ce059c910fbbfc703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0a91f6a7d2767ab92d793ac961d2d185"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga0a91f6a7d2767ab92d793ac961d2d185">ads1118_stop_continuous_read</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle)</td></tr>
<tr class="memdesc:ga0a91f6a7d2767ab92d793ac961d2d185"><td class="mdescLeft">&#160;</td><td class="mdescRight">stop the chip reading  <a href="group__ads1118__basic__driver.html#ga0a91f6a7d2767ab92d793ac961d2d185">More...</a><br /></td></tr>
<tr class="separator:ga0a91f6a7d2767ab92d793ac961d2d185"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabbc1c33e1c2509c10d965420a96a4aa6"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gabbc1c33e1c2509c10d965420a96a4aa6">ads1118_temperature_convert</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, int16_t raw, float *deg)</td></tr>
<tr class="memdesc:gabbc1c33e1c2509c10d965420a96a4aa6"><td class="mdescLeft">&#160;</td><td class="mdescRight">temperature convert  <a href="group__ads1118__basic__driver.html#gabbc1c33e1c2509c10d965420a96a4aa6">More...</a><br /></td></tr>
<tr class="separator:gabbc1c33e1c2509c10d965420a96a4aa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4f38861957ee1ce243bc3f185dab9fd2"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga4f38861957ee1ce243bc3f185dab9fd2">ads1118_set_channel</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a> channel)</td></tr>
<tr class="memdesc:ga4f38861957ee1ce243bc3f185dab9fd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the adc channel  <a href="group__ads1118__basic__driver.html#ga4f38861957ee1ce243bc3f185dab9fd2">More...</a><br /></td></tr>
<tr class="separator:ga4f38861957ee1ce243bc3f185dab9fd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga388bfe8d066866dcf2cbc90bf7c06cda"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga388bfe8d066866dcf2cbc90bf7c06cda">ads1118_get_channel</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a> *channel)</td></tr>
<tr class="memdesc:ga388bfe8d066866dcf2cbc90bf7c06cda"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the adc channel  <a href="group__ads1118__basic__driver.html#ga388bfe8d066866dcf2cbc90bf7c06cda">More...</a><br /></td></tr>
<tr class="separator:ga388bfe8d066866dcf2cbc90bf7c06cda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5144bbba8907fedd3957b609e2edd9d2"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga5144bbba8907fedd3957b609e2edd9d2">ads1118_set_range</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#ga8e9e27e0d446a669c5766bef8dc9e3db">ads1118_range_t</a> range)</td></tr>
<tr class="memdesc:ga5144bbba8907fedd3957b609e2edd9d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the adc range  <a href="group__ads1118__basic__driver.html#ga5144bbba8907fedd3957b609e2edd9d2">More...</a><br /></td></tr>
<tr class="separator:ga5144bbba8907fedd3957b609e2edd9d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf9a19c2bcbbc1f46d9d3c0eb65a48f0e"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gaf9a19c2bcbbc1f46d9d3c0eb65a48f0e">ads1118_get_range</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#ga8e9e27e0d446a669c5766bef8dc9e3db">ads1118_range_t</a> *range)</td></tr>
<tr class="memdesc:gaf9a19c2bcbbc1f46d9d3c0eb65a48f0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the adc range  <a href="group__ads1118__basic__driver.html#gaf9a19c2bcbbc1f46d9d3c0eb65a48f0e">More...</a><br /></td></tr>
<tr class="separator:gaf9a19c2bcbbc1f46d9d3c0eb65a48f0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab57aaa419bd104ec5d343d4298df9d19"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gab57aaa419bd104ec5d343d4298df9d19">ads1118_set_rate</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#gad5dec9726414e0cf7c7b65894ce838f8">ads1118_rate_t</a> rate)</td></tr>
<tr class="memdesc:gab57aaa419bd104ec5d343d4298df9d19"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the sample rate  <a href="group__ads1118__basic__driver.html#gab57aaa419bd104ec5d343d4298df9d19">More...</a><br /></td></tr>
<tr class="separator:gab57aaa419bd104ec5d343d4298df9d19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab69fea5d25d34c9fc84fb5c5a2ce9d94"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gab69fea5d25d34c9fc84fb5c5a2ce9d94">ads1118_get_rate</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#gad5dec9726414e0cf7c7b65894ce838f8">ads1118_rate_t</a> *rate)</td></tr>
<tr class="memdesc:gab69fea5d25d34c9fc84fb5c5a2ce9d94"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the sample rate  <a href="group__ads1118__basic__driver.html#gab69fea5d25d34c9fc84fb5c5a2ce9d94">More...</a><br /></td></tr>
<tr class="separator:gab69fea5d25d34c9fc84fb5c5a2ce9d94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadcf796dd6f95d9cafe5b053b0a0a0988"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gadcf796dd6f95d9cafe5b053b0a0a0988">ads1118_set_mode</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a> mode)</td></tr>
<tr class="memdesc:gadcf796dd6f95d9cafe5b053b0a0a0988"><td class="mdescLeft">&#160;</td><td class="mdescRight">set the chip mode  <a href="group__ads1118__basic__driver.html#gadcf796dd6f95d9cafe5b053b0a0a0988">More...</a><br /></td></tr>
<tr class="separator:gadcf796dd6f95d9cafe5b053b0a0a0988"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga893f59671b982d88474569cc2d096d1d"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga893f59671b982d88474569cc2d096d1d">ads1118_get_mode</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a> *mode)</td></tr>
<tr class="memdesc:ga893f59671b982d88474569cc2d096d1d"><td class="mdescLeft">&#160;</td><td class="mdescRight">get the chip mode  <a href="group__ads1118__basic__driver.html#ga893f59671b982d88474569cc2d096d1d">More...</a><br /></td></tr>
<tr class="separator:ga893f59671b982d88474569cc2d096d1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga911c4bebd479377d56dcd638f727cc63"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#ga911c4bebd479377d56dcd638f727cc63">ads1118_set_dout_pull_up</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#ga78f49a4380e81222e020fb730acc47f1">ads1118_bool_t</a> enable)</td></tr>
<tr class="memdesc:ga911c4bebd479377d56dcd638f727cc63"><td class="mdescLeft">&#160;</td><td class="mdescRight">enable or disable dout pull up  <a href="group__ads1118__basic__driver.html#ga911c4bebd479377d56dcd638f727cc63">More...</a><br /></td></tr>
<tr class="separator:ga911c4bebd479377d56dcd638f727cc63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae038a0b1c2000b87f78ce4f3cbc0ca61"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ads1118__basic__driver.html#gae038a0b1c2000b87f78ce4f3cbc0ca61">ads1118_get_dout_pull_up</a> (<a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *handle, <a class="el" href="group__ads1118__basic__driver.html#ga78f49a4380e81222e020fb730acc47f1">ads1118_bool_t</a> *enable)</td></tr>
<tr class="memdesc:gae038a0b1c2000b87f78ce4f3cbc0ca61"><td class="mdescLeft">&#160;</td><td class="mdescRight">get dout pull up status  <a href="group__ads1118__basic__driver.html#gae038a0b1c2000b87f78ce4f3cbc0ca61">More...</a><br /></td></tr>
<tr class="separator:gae038a0b1c2000b87f78ce4f3cbc0ca61"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>ads1118 basic driver modules </p>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="gaadad14ae0203b8cacb132a81dadefd9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaadad14ae0203b8cacb132a81dadefd9f">&#9670;&nbsp;</a></span>ads1118_handle_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structads1118__handle__s.html">ads1118_handle_s</a> <a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ads1118 handle structure definition </p>

</div>
</div>
<a id="ga8ceed1d957d0458c8fbeb069da9c0d6b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8ceed1d957d0458c8fbeb069da9c0d6b">&#9670;&nbsp;</a></span>ads1118_info_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structads1118__info__s.html">ads1118_info_s</a> <a class="el" href="group__ads1118__basic__driver.html#ga8ceed1d957d0458c8fbeb069da9c0d6b">ads1118_info_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ads1118 information structure definition </p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga78f49a4380e81222e020fb730acc47f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga78f49a4380e81222e020fb730acc47f1">&#9670;&nbsp;</a></span>ads1118_bool_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ads1118__basic__driver.html#ga78f49a4380e81222e020fb730acc47f1">ads1118_bool_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ads1118 bool enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga78f49a4380e81222e020fb730acc47f1a20394de6d87f9867988d8d9d745596e1"></a>ADS1118_BOOL_FALSE&#160;</td><td class="fielddoc"><p>disable function </p>
</td></tr>
<tr><td class="fieldname"><a id="gga78f49a4380e81222e020fb730acc47f1a0632581684dbafc03a6d4d55ae4fcb6e"></a>ADS1118_BOOL_TRUE&#160;</td><td class="fielddoc"><p>enable function </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8h_source.html#l00062">62</a> of file <a class="el" href="driver__ads1118_8h_source.html">driver_ads1118.h</a>.</p>

</div>
</div>
<a id="gabafaa3825a93ff6b91ee46b52fd87985"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabafaa3825a93ff6b91ee46b52fd87985">&#9670;&nbsp;</a></span>ads1118_channel_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ads1118 channel enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggabafaa3825a93ff6b91ee46b52fd87985a58125163d98403f090c67e081975ff8c"></a>ADS1118_CHANNEL_AIN0_AIN1&#160;</td><td class="fielddoc"><p>AIN0 and AIN1 pins </p>
</td></tr>
<tr><td class="fieldname"><a id="ggabafaa3825a93ff6b91ee46b52fd87985a6ad610ba2237169d8f815190fc7fd635"></a>ADS1118_CHANNEL_AIN0_AIN3&#160;</td><td class="fielddoc"><p>AIN0 and AIN3 pins </p>
</td></tr>
<tr><td class="fieldname"><a id="ggabafaa3825a93ff6b91ee46b52fd87985adfc3e9c067fccfb9568c4f36d56d29a2"></a>ADS1118_CHANNEL_AIN1_AIN3&#160;</td><td class="fielddoc"><p>AIN1 and AIN3 pins </p>
</td></tr>
<tr><td class="fieldname"><a id="ggabafaa3825a93ff6b91ee46b52fd87985a7d3758007a36985cd1a35c2e983923a8"></a>ADS1118_CHANNEL_AIN2_AIN3&#160;</td><td class="fielddoc"><p>AIN2 and AIN3 pins </p>
</td></tr>
<tr><td class="fieldname"><a id="ggabafaa3825a93ff6b91ee46b52fd87985a4c23449b464ca7e036c087cd6b54eb5e"></a>ADS1118_CHANNEL_AIN0_GND&#160;</td><td class="fielddoc"><p>AIN0 and GND pins </p>
</td></tr>
<tr><td class="fieldname"><a id="ggabafaa3825a93ff6b91ee46b52fd87985ac0aa314ff603ec793b90ff60cc0d3440"></a>ADS1118_CHANNEL_AIN1_GND&#160;</td><td class="fielddoc"><p>AIN1 and GND pins </p>
</td></tr>
<tr><td class="fieldname"><a id="ggabafaa3825a93ff6b91ee46b52fd87985a31a3e2abc07afc5a3ade5e6ce71f0187"></a>ADS1118_CHANNEL_AIN2_GND&#160;</td><td class="fielddoc"><p>AIN2 and GND pins </p>
</td></tr>
<tr><td class="fieldname"><a id="ggabafaa3825a93ff6b91ee46b52fd87985ac55cc1d3e9c42d3a51513cb4ea5206fc"></a>ADS1118_CHANNEL_AIN3_GND&#160;</td><td class="fielddoc"><p>AIN3 and GND pins </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8h_source.html#l00099">99</a> of file <a class="el" href="driver__ads1118_8h_source.html">driver_ads1118.h</a>.</p>

</div>
</div>
<a id="ga6c9f083f2c394319c5a0ccfcad8f006d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6c9f083f2c394319c5a0ccfcad8f006d">&#9670;&nbsp;</a></span>ads1118_mode_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ads1118 mode enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga6c9f083f2c394319c5a0ccfcad8f006daa427a34d39145d5d0d2a54bd1c76f950"></a>ADS1118_MODE_ADC&#160;</td><td class="fielddoc"><p>adc mode </p>
</td></tr>
<tr><td class="fieldname"><a id="gga6c9f083f2c394319c5a0ccfcad8f006da886ef96e7601af3ec517ec8234ffbac2"></a>ADS1118_MODE_TEMPERATURE&#160;</td><td class="fielddoc"><p>temperature mode </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8h_source.html#l00114">114</a> of file <a class="el" href="driver__ads1118_8h_source.html">driver_ads1118.h</a>.</p>

</div>
</div>
<a id="ga8e9e27e0d446a669c5766bef8dc9e3db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8e9e27e0d446a669c5766bef8dc9e3db">&#9670;&nbsp;</a></span>ads1118_range_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ads1118__basic__driver.html#ga8e9e27e0d446a669c5766bef8dc9e3db">ads1118_range_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ads1118 range enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga8e9e27e0d446a669c5766bef8dc9e3dbad54eb5fd2837dffd5ead493710d45063"></a>ADS1118_RANGE_6P144V&#160;</td><td class="fielddoc"><p>6.144V range </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8e9e27e0d446a669c5766bef8dc9e3dbad70180f192713d521c787e63030bd6e9"></a>ADS1118_RANGE_4P096V&#160;</td><td class="fielddoc"><p>4.096V range </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8e9e27e0d446a669c5766bef8dc9e3dbabd8448722b8bc8fa8a451723b1258144"></a>ADS1118_RANGE_2P048V&#160;</td><td class="fielddoc"><p>2.048V range </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8e9e27e0d446a669c5766bef8dc9e3dba8a92d51c2cef6b3f95c4a71647d265ad"></a>ADS1118_RANGE_1P024V&#160;</td><td class="fielddoc"><p>1.024V range </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8e9e27e0d446a669c5766bef8dc9e3dbaad424621cf470a9a11fab9cb5b0d6de5"></a>ADS1118_RANGE_0P512V&#160;</td><td class="fielddoc"><p>0.512V range </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8e9e27e0d446a669c5766bef8dc9e3dba5513613a4baca4b8d42f4939b619aa9c"></a>ADS1118_RANGE_0P256V&#160;</td><td class="fielddoc"><p>0.256V range </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8h_source.html#l00071">71</a> of file <a class="el" href="driver__ads1118_8h_source.html">driver_ads1118.h</a>.</p>

</div>
</div>
<a id="gad5dec9726414e0cf7c7b65894ce838f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad5dec9726414e0cf7c7b65894ce838f8">&#9670;&nbsp;</a></span>ads1118_rate_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__ads1118__basic__driver.html#gad5dec9726414e0cf7c7b65894ce838f8">ads1118_rate_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>ads1118 channel rate enumeration definition </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggad5dec9726414e0cf7c7b65894ce838f8ae56de8a9e54b295965f3e6d6a37b2f3a"></a>ADS1118_RATE_8SPS&#160;</td><td class="fielddoc"><p>8 sample per second </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad5dec9726414e0cf7c7b65894ce838f8a6668699dc8cc04acf7d1e07baa8d9edd"></a>ADS1118_RATE_16SPS&#160;</td><td class="fielddoc"><p>16 sample per second </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad5dec9726414e0cf7c7b65894ce838f8a6934052e5bd66fee04ed51656644e3ec"></a>ADS1118_RATE_32SPS&#160;</td><td class="fielddoc"><p>32 sample per second </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad5dec9726414e0cf7c7b65894ce838f8a01e81a3c6c5afcafbc7e727801f23617"></a>ADS1118_RATE_64SPS&#160;</td><td class="fielddoc"><p>64 sample per second </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad5dec9726414e0cf7c7b65894ce838f8aba07a6359dee87c7c7686b2f670216c1"></a>ADS1118_RATE_128SPS&#160;</td><td class="fielddoc"><p>128 sample per second </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad5dec9726414e0cf7c7b65894ce838f8afc684d1815f829b624e3dcdd008d2324"></a>ADS1118_RATE_250SPS&#160;</td><td class="fielddoc"><p>250 sample per second </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad5dec9726414e0cf7c7b65894ce838f8ab3406d4c5ad1eba23e6374b9e27394d4"></a>ADS1118_RATE_475SPS&#160;</td><td class="fielddoc"><p>475 sample per second </p>
</td></tr>
<tr><td class="fieldname"><a id="ggad5dec9726414e0cf7c7b65894ce838f8a9b336c77a1f74d36ca4469e26e8ead55"></a>ADS1118_RATE_860SPS&#160;</td><td class="fielddoc"><p>860 sample per second </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8h_source.html#l00084">84</a> of file <a class="el" href="driver__ads1118_8h_source.html">driver_ads1118.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga73e33b761a30ee2d8a32e2683f501b21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga73e33b761a30ee2d8a32e2683f501b21">&#9670;&nbsp;</a></span>ads1118_continuous_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_continuous_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t *&#160;</td>
          <td class="paramname"><em>raw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>read data from the chip continuously </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*raw</td><td>pointer to a raw adc buffer </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*v</td><td>pointer to a converted adc buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 continuous read failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>this function can be used only after run ads1118_start_continuous_read and can be stopped by ads1118_stop_continuous_read </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00783">783</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="ga9b8aa851ba99b283ac4602782b223ee3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9b8aa851ba99b283ac4602782b223ee3">&#9670;&nbsp;</a></span>ads1118_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_deinit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>close the chip </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 spi deinit failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized</li>
<li>4 power down failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00199">199</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="ga388bfe8d066866dcf2cbc90bf7c06cda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga388bfe8d066866dcf2cbc90bf7c06cda">&#9670;&nbsp;</a></span>ads1118_get_channel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_get_channel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a> *&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get the adc channel </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*channel</td><td>pointer to a channel buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get channel failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00299">299</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="gae038a0b1c2000b87f78ce4f3cbc0ca61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae038a0b1c2000b87f78ce4f3cbc0ca61">&#9670;&nbsp;</a></span>ads1118_get_dout_pull_up()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_get_dout_pull_up </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#ga78f49a4380e81222e020fb730acc47f1">ads1118_bool_t</a> *&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get dout pull up status </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*enable</td><td>pointer to a bool value buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get dout pull up failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00635">635</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="ga893f59671b982d88474569cc2d096d1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga893f59671b982d88474569cc2d096d1d">&#9670;&nbsp;</a></span>ads1118_get_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_get_mode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a> *&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get the chip mode </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*mode</td><td>pointer to a mode buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get mode failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00551">551</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="gaf9a19c2bcbbc1f46d9d3c0eb65a48f0e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf9a19c2bcbbc1f46d9d3c0eb65a48f0e">&#9670;&nbsp;</a></span>ads1118_get_range()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_get_range </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#ga8e9e27e0d446a669c5766bef8dc9e3db">ads1118_range_t</a> *&#160;</td>
          <td class="paramname"><em>range</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get the adc range </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*range</td><td>pointer to a voltage range buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get range failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00383">383</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="gab69fea5d25d34c9fc84fb5c5a2ce9d94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab69fea5d25d34c9fc84fb5c5a2ce9d94">&#9670;&nbsp;</a></span>ads1118_get_rate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_get_rate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gad5dec9726414e0cf7c7b65894ce838f8">ads1118_rate_t</a> *&#160;</td>
          <td class="paramname"><em>rate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get the sample rate </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*rate</td><td>pointer to an adc sample rate buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 get rate failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00467">467</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="ga55d6166a84901612e5928e627dce4f90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga55d6166a84901612e5928e627dce4f90">&#9670;&nbsp;</a></span>ads1118_info()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_info </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#ga8ceed1d957d0458c8fbeb069da9c0d6b">ads1118_info_t</a> *&#160;</td>
          <td class="paramname"><em>info</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get chip's information </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">*info</td><td>pointer to an ads1118 info structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>2 handle is NULL </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l01001">1001</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="ga9014301f3bc54491fa06584985344a1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9014301f3bc54491fa06584985344a1d">&#9670;&nbsp;</a></span>ads1118_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>initialize the chip </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 spi initialization failed</li>
<li>2 handle is NULL</li>
<li>3 linked functions is NULL </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00142">142</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="ga4f38861957ee1ce243bc3f185dab9fd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4f38861957ee1ce243bc3f185dab9fd2">&#9670;&nbsp;</a></span>ads1118_set_channel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_set_channel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gabafaa3825a93ff6b91ee46b52fd87985">ads1118_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set the adc channel </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">channel</td><td>adc channel </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set channel failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00252">252</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="ga911c4bebd479377d56dcd638f727cc63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga911c4bebd479377d56dcd638f727cc63">&#9670;&nbsp;</a></span>ads1118_set_dout_pull_up()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_set_dout_pull_up </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#ga78f49a4380e81222e020fb730acc47f1">ads1118_bool_t</a>&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>enable or disable dout pull up </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">enable</td><td>bool value </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set dout pull up failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00588">588</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="gadcf796dd6f95d9cafe5b053b0a0a0988"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadcf796dd6f95d9cafe5b053b0a0a0988">&#9670;&nbsp;</a></span>ads1118_set_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_set_mode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#ga6c9f083f2c394319c5a0ccfcad8f006d">ads1118_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set the chip mode </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>chip mode </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set mode failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00504">504</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="ga5144bbba8907fedd3957b609e2edd9d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5144bbba8907fedd3957b609e2edd9d2">&#9670;&nbsp;</a></span>ads1118_set_range()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_set_range </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#ga8e9e27e0d446a669c5766bef8dc9e3db">ads1118_range_t</a>&#160;</td>
          <td class="paramname"><em>range</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set the adc range </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">range</td><td>adc max voltage range </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set range failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00336">336</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="gab57aaa419bd104ec5d343d4298df9d19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab57aaa419bd104ec5d343d4298df9d19">&#9670;&nbsp;</a></span>ads1118_set_rate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_set_rate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gad5dec9726414e0cf7c7b65894ce838f8">ads1118_rate_t</a>&#160;</td>
          <td class="paramname"><em>rate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>set the sample rate </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">rate</td><td>adc sample rate </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 set rate failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00420">420</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="ga2188b115128959d6296d1aa337293532"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2188b115128959d6296d1aa337293532">&#9670;&nbsp;</a></span>ads1118_single_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_single_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t *&#160;</td>
          <td class="paramname"><em>raw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>read data from the chip once </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*raw</td><td>pointer to a raw adc buffer </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*v</td><td>pointer to a converted adc buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 single read failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00673">673</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="gad91adcee86fd324ce059c910fbbfc703"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad91adcee86fd324ce059c910fbbfc703">&#9670;&nbsp;</a></span>ads1118_start_continuous_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_start_continuous_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>start the chip reading </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 start continuous read failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00857">857</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="ga0a91f6a7d2767ab92d793ac961d2d185"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0a91f6a7d2767ab92d793ac961d2d185">&#9670;&nbsp;</a></span>ads1118_stop_continuous_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_stop_continuous_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>stop the chip reading </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 stop continuous read failed</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00900">900</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
<a id="gabbc1c33e1c2509c10d965420a96a4aa6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabbc1c33e1c2509c10d965420a96a4aa6">&#9670;&nbsp;</a></span>ads1118_temperature_convert()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ads1118_temperature_convert </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__ads1118__basic__driver.html#gaadad14ae0203b8cacb132a81dadefd9f">ads1118_handle_t</a> *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>raw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>deg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>temperature convert </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*handle</td><td>pointer to an ads1118 handle structure </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">raw</td><td>adc raw data </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">*deg</td><td>pointer to a deg buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>2 handle is NULL</li>
<li>3 handle is not initialized </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ads1118_8c_source.html#l00945">945</a> of file <a class="el" href="driver__ads1118_8c_source.html">driver_ads1118.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
